package myJs.user.mission

import myJs.Utils._
import scala.scalajs.js.Dynamic.{global=>g}
import myJs.tool.Pojo._
import myJs.user.mission.plot._

import scala.scalajs.js.annotation.{JSExport, JSExportTopLevel}


/**
 * Created by yz on 2019/4/25
 */
@JSExportTopLevel("IPathResult")
object IPathResult extends MissionResult {

  val formId = "form"

  @JSExport("init")
  def init = {
    refreshMissionInfo(getMissionId)
    refreshFileInfo(getMissionId)
    registerEvent

    selfInit

    //    val selectTabId=PathwayBubble.name
    val selectTabId = PathwayBar.name

    //    val inTab = "Layout"
    val inTab = "Font"
    //        val inTab="Color"

    //    Tool.selectTab(s"${selectTabId}")
    //    Tool.selectArgTab(s"${selectTabId}${inTab}")

  }

  def selfInit = {
  }

  def getMissionId = {
    g.missionId.toString
  }

}
